{% extends "base_footer.html" %}

{% block body %}

    <div class="header_con">
        <div class="header">
            <div class="welcome fl">欢迎来到天天生鲜!</div>
            <div class="fr">
                {% if request.session.user_name|default:'' != '' %}
                    <div class="login_info fl">
                        欢迎您：<em>{{ request.session.user_name }}</em>
                    </div>
                {% else %}
                    <div class="login_btn fl">
                        <a href="../user_register/login.html">登录</a>
                        <span>|</span>
                        <a href="../user_register/register.html">注册</a>
                    </div>
                {% endif %}
                <div class="user_link fl">
                    <span>|</span>
                    <a href="/user/userInfoCenter/">用户中心</a>
                    <span>|</span>
                    <a href="cart.html">我的购物车</a>
                    <span>|</span>
                    <a href="../user_register/user_center_order.html">我的订单</a>
                </div>
            </div>
        </div>
    </div>

    <a href="/" class="logo fl"><img src="/static/images/logo.png"></a>

    {% if user_flag == 1 %}
        <div class="search_bar clearfix">
            <div class="sub_page_name fl">|&nbsp;&nbsp;&nbsp;&nbsp;用户中心</div>
            <div class="search_con fr">
                <input type="text" class="input_text fl" name="" placeholder="搜索商品">
                <input type="button" class="input_btn fr" name="" value="搜索">
            </div>
        </div>
    {% endif %}
    {% if shopcar == 1 %}
        <div class="search_bar clearfix">
            <div class="search_con fl">
                <input type="text" class="input_text fl" name="" placeholder="搜索商品">
                <input type="button" class="input_btn fr" name="" value="搜索">
            </div>
            <div class="guest_cart fr">
                <a href="#" class="cart_name fl">我的购物车</a>
                <div class="goods_count fl" id="show_count">1</div>
            </div>


        </div>
    {% endif %}


    {% block content %}
    {% endblock content %}

{% endblock body %}

